Companion

object Companion

Functions

create
Link copied to clipboard
fun create(value: <ERROR CLASS>): RealmAny
Creates an unmanaged RealmAny instance from a Decimal128 value.
inline fun <T : RealmObject> create(realmObject: T): RealmAny
Creates an unmanaged RealmAny instance from a RealmObject value.
fun create(realmObject: DynamicRealmObject): RealmAny
Creates an unmanaged RealmAny instance from a DynamicRealmObject value.
fun create(value: RealmInstant): RealmAny
Creates an unmanaged RealmAny instance from a RealmInstant value.
fun create(value: RealmUUID): RealmAny
Creates an unmanaged RealmAny instance from a RealmUUID value.
fun create(value: Boolean): RealmAny
Creates an unmanaged RealmAny instance from a Boolean value.
fun create(value: Byte): RealmAny
Creates an unmanaged RealmAny instance from a Byte value.
fun create(value: ByteArray): RealmAny
Creates an unmanaged RealmAny instance from a ByteArray value.
fun create(value: Char): RealmAny
Creates an unmanaged RealmAny instance from a Char value.
fun create(value: Double): RealmAny
Creates an unmanaged RealmAny instance from a Double value.
fun create(value: Float): RealmAny
Creates an unmanaged RealmAny instance from a Float value.
fun create(value: Int): RealmAny
Creates an unmanaged RealmAny instance from an Int value.
fun create(value: Long): RealmAny
Creates an unmanaged RealmAny instance from a Long value.
fun create(value: Short): RealmAny
Creates an unmanaged RealmAny instance from a Short value.
fun create(value: String): RealmAny
Creates an unmanaged RealmAny instance from a String value.
fun create(value: BsonObjectId): RealmAny
Creates an unmanaged RealmAny instance from a BsonObjectId value.
fun <T : RealmObject> create(value: T, clazz: KClass<out T>): RealmAny
Creates an unmanaged RealmAny instance from a RealmObject value and its corresponding KClass.